package com.csu.tour.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.util.Date;

@Data
@EntityScan
@TableName( "emergency")
public class Emergency {
    @TableId(value = "emergency_id")
    private int  id;

    private String content;
    @EnumValue
    private String status;
    private Date time;
    @TableField("expiry_date")
    private Date expiryDate;

}

